<?php 
/* SVN FILE: $Id$ */
/* Paise Test cases generated on: 2009-03-25 04:03:10 : 1237970650*/
App::import('Model', 'Paise');

class PaiseTestCase extends CakeTestCase {
	var $Paise = null;
	var $fixtures = array('app.paise', 'app.ciudade');

	function startTest() {
		$this->Paise =& ClassRegistry::init('Paise');
	}

	function testPaiseInstance() {
		$this->assertTrue(is_a($this->Paise, 'Paise'));
	}

	function testPaiseFind() {
		$this->Paise->recursive = -1;
		$results = $this->Paise->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Paise' => array(
			'pais'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'continente'  => 'Lorem ipsum dolor sit amet'
			));
		$this->assertEqual($results, $expected);
	}
}
?>